package com.bw.service;

import com.bw.bean.UserInfo;
import com.bw.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author admin
 * @date 2025年09月19日 09:55
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public int insert(UserInfo userInfo) {
        return userMapper.insert(userInfo);
    }

    @Override
    public int update(Integer id) {
        return userMapper.update(id);
    }

    @Override
    public int delect(Integer id) {
        return userMapper.delect(id);
    }

    @Override
    public List<UserInfo> selectId(Integer id) {
        return userMapper.selectId(id);
    }

    @Override
    public List<UserInfo> selectAll() {
        return userMapper.selectAll();
    }
}
